package com.train.pattern.observer.general;

//抽象主题者
public interface ISubject<E> {
    //注册
    boolean attach(IObserver<E> observer);

    //注销
    boolean detach(IObserver<E> observer);

    //通知
    void notify(E event);
}